﻿//-----------------------------------------------------------------------
// <copyright file="UserInfoEntity.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: UserInfo.cs
// * history : created by qinchaoyue 2017-10-20 10:04:19
// </copyright>
//-----------------------------------------------------------------------

namespace Slwy.Core.Entities
{
    using System;

    using Slwy.Data.Entity.Data;

    /// <summary>
    /// 使用默认仓储访问 用户信息
    /// 使用默认仓储 UserInfo 必须继承 EntityBase 并指定主键类型, 并且类名必须和表名相同
    /// </summary>
    public class UserInfoEntity : EntityBase<string>
    {
        public string UserName { get; set; } = string.Empty;
        public string UserAccount { get; set; } = string.Empty;
        public string LoginPWD { get; set; } = string.Empty;
        public string PaymentPWD { get; set; } = string.Empty;
        public string UserPhone { get; set; } = string.Empty;
        public string UserEmail { get; set; } = string.Empty;
        public string Nationality { get; set; } = string.Empty;
        public int Sex { get; set; }
        public DateTime BirthDate { get; set; }
        public string Photo { get; set; } = string.Empty;
        public DateTime TokenCreateTime { get; set; }
        public DateTime LastOperateTime { get; set; }
        public string Token { get; set; } = string.Empty;
        public int Activation { get; set; }
        public string RendaLevelID { get; set; } = string.Empty;
        public int PositionName { get; set; }
        public bool IsCompanyAccount { get; set; }
        public DateTime AddTime { get; set; }
        public string AddUser { get; set; } = string.Empty;
        public DateTime ModifyTime { get; set; }
        public string ModifyUser { get; set; } = string.Empty;
        public string PassportFirstName { get; set; } = string.Empty;
        public string PassportLastName { get; set; } = string.Empty;
        public string AccountID { get; set; } = string.Empty;
        public string NationalityCode { get; set; } = string.Empty;
    }
}
